package p07.p0720;

import java.util.Scanner;

/**
 * Created by wy on 7/17/2017.
 */
public class MyMath {
    public int jia(int a, int b) {
        return a + b;
    }

    public int jian(int a, int b) {
        return a - b;
    }

    public int cheng(int a, int b) {
        return a * b;
    }

    public int chu(int a, int b) {
        return a / b;
    }

    public void show(int show) {
        System.out.println(show);
    }
}

class Test {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("in put a:");
        int a = sc.nextInt();

        //System.out.println("in put +-*/:");
      //  int yunsuana = sc.ne
        System.out.println("in put b:");
        int b = sc.nextInt();

        MyMath myMath = new MyMath();
        //int jia = myMath.jia(a,b);
        myMath.show(myMath.jia(a,b));
        myMath.show(myMath.jian(a,b));
        myMath.show(myMath.cheng(a,b));
        myMath.show(myMath.chu(a,b));

    }
}